package com.example.forum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.forum.entity.TAppuser;
import com.example.forum.entity.TTheme;
import com.example.forum.vo.PageDto;
import com.example.forum.vo.ThemeModel;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author why
 * @since 2020-04-22
 */
public interface ITThemeService extends IService<TTheme> {
    PageDto getThemeReplyInfo(Map<Object,Object> map);

    PageDto queryMyThemeOrReply(HashMap<Object, Object> map);

    /**
     * 查询地区推荐文章
     * @return
     */
    PageDto homeThemeRecommend(TAppuser appuser, Integer page, Integer pageSize);

    boolean CreateTheme(ThemeModel themeModel,String userId);

    PageDto getThemesByAreaId(Integer pageIndex, Integer pageSize, String blockId, String areaId, String currentUserId);

    TTheme getThemesDetail(String themeId,String userId);
}
